﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 评论表
    /// </summary>
    public interface ICommentService
    {
        public Task<int> AddCommentAsync(int bid, string content, int likesum,int uid);
        public Task<int> UpdateCommentAsync(int id, int bid, string content, int likesum, int uid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteCommentAsync(int id);
        public Task<List<CommentDto>> GetAllCommentAsync(int deleteId = 1);
        public Task<List<CommentDto>> GetByNameAsync(string content, int deleteId = 1);
        public Task<CommentDto> GetByIdAsync(int id);
        public Task<List<CommentDto>> GetByBidListAsync(int bid);
    }
}
